package com.ruoyi.shanghuliebiao2.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shanghuliebiao2.mapper.CheDrawalStatementMapper;
import com.ruoyi.shanghuliebiao2.domain.CheDrawalStatement;
import com.ruoyi.shanghuliebiao2.service.ICheDrawalStatementService;

/**
 * 中间表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
@Service
public class CheDrawalStatementServiceImpl implements ICheDrawalStatementService 
{
    @Autowired
    private CheDrawalStatementMapper cheDrawalStatementMapper;

    /**
     * 查询中间表
     * 
     * @param id 中间表主键
     * @return 中间表
     */
    @Override
    public CheDrawalStatement selectCheDrawalStatementById(Long id)
    {
        return cheDrawalStatementMapper.selectCheDrawalStatementById(id);
    }

    /**
     * 查询中间表列表
     * 
     * @param cheDrawalStatement 中间表
     * @return 中间表
     */
    @Override
    public List<CheDrawalStatement> selectCheDrawalStatementList(CheDrawalStatement cheDrawalStatement)
    {
        return cheDrawalStatementMapper.selectCheDrawalStatementList(cheDrawalStatement);
    }

    /**
     * 新增中间表
     * 
     * @param cheDrawalStatement 中间表
     * @return 结果
     */
    @Override
    public int insertCheDrawalStatement(CheDrawalStatement cheDrawalStatement)
    {
        return cheDrawalStatementMapper.insertCheDrawalStatement(cheDrawalStatement);
    }

    /**
     * 修改中间表
     * 
     * @param cheDrawalStatement 中间表
     * @return 结果
     */
    @Override
    public int updateCheDrawalStatement(CheDrawalStatement cheDrawalStatement)
    {
        return cheDrawalStatementMapper.updateCheDrawalStatement(cheDrawalStatement);
    }

    /**
     * 批量删除中间表
     * 
     * @param ids 需要删除的中间表主键
     * @return 结果
     */
    @Override
    public int deleteCheDrawalStatementByIds(Long[] ids)
    {
        return cheDrawalStatementMapper.deleteCheDrawalStatementByIds(ids);
    }

    /**
     * 删除中间表信息
     * 
     * @param id 中间表主键
     * @return 结果
     */
    @Override
    public int deleteCheDrawalStatementById(Long id)
    {
        return cheDrawalStatementMapper.deleteCheDrawalStatementById(id);
    }
}
